<?php

namespace app\modules\Dashboard\controllers;

use Yii;
use yii\web\Controller;

class DashboardController extends Controller
{
    public function actionIndex()
    {

    	if(Yii::$app->user->isGuest){ //未登录

    		return $this->redirect("/admin/user/login");

    	}else{

    		return $this->render('index');

    	}
        
    }

}
